Package com.cisco.pt.ipc.sim.impl
Class CloudImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.DeviceImpl
com.cisco.pt.ipc.sim.impl.CloudImpl
Information provided by the PKI file:
\class Cloud
\brief Cloud is a cloud device.
\example network().getDevice("Cloud0")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionCloudImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPhoneConnection(String number, String portName) Information provided by the PKI file:booleanaddPortConnection(String portName1, String portName2) Information provided by the PKI file:booleanaddSubLinkConnection(String portName1, String subLinkName1, String portName2, String subLinkName2) Information provided by the PKI file:getHardwareQueueAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:getSubLinkConnectionAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:booleanisDslConnection(String portname) Information provided by the PKI file:booleanremoveAllPortConnection(String portName) Information provided by the PKI file:voidremovePhoneConnection(String number) Information provided by the PKI file:booleanremovePortConnection(String portName) Information provided by the PKI file:booleanremoveSubLinkConnection(String portName, String subLinkName) Information provided by the PKI file:voidremoveSubLinkConnectionAt(int index) Information provided by the PKI file:booleansetDslConnection(String portName, boolean bDSL) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.DeviceImpl
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.Device
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
CloudImpl
public CloudImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addPhoneConnection
Information provided by the PKI file:
\brief Associates a phone number to a port. \param number, the telephone number. The format is 5551239999. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \return bool, true if successful, otherwise false.- Specified by:
addPhoneConnectionin interfaceCloud- Parameters:
number- Takes in a parameter of numberportName- Takes in a parameter of portName- Returns:
- boolean Returns a boolean
-
removePhoneConnection
Information provided by the PKI file:
\brief Removes the phone number from the port. \param number, the telephone number to remove.- Specified by:
removePhoneConnectionin interfaceCloud- Parameters:
number- Takes in a parameter of number
-
addSubLinkConnection
public boolean addSubLinkConnection(String portName1, String subLinkName1, String portName2, String subLinkName2) Information provided by the PKI file:
\brief Adds a sublink connection between the two specified ports. \param portName1, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param subLinkName1, the name of the sublink associated to portName1. \param portName2, see portName1 description. \param subLinkName1, the name of the sublink associated to portName2. \return bool, true if successful, otherwise false.- Specified by:
addSubLinkConnectionin interfaceCloud- Parameters:
portName1- Takes in a parameter of portName1subLinkName1- Takes in a parameter of subLinkName1portName2- Takes in a parameter of portName2subLinkName2- Takes in a parameter of subLinkName2- Returns:
- boolean Returns a boolean
-
removeSubLinkConnection
Information provided by the PKI file:
\brief Removes the sublink connection. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param subLinkName, the name of the sublink associated to portName. \return bool, true if successful, otherwise false.- Specified by:
removeSubLinkConnectionin interfaceCloud- Parameters:
portName- Takes in a parameter of portNamesubLinkName- Takes in a parameter of subLinkName- Returns:
- boolean Returns a boolean
-
addPortConnection
Information provided by the PKI file:
\brief Adds the port connection. \param portName1, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param portName2, see portName1 description. \return bool, true if successful, otherwise false.- Specified by:
addPortConnectionin interfaceCloud- Parameters:
portName1- Takes in a parameter of portName1portName2- Takes in a parameter of portName2- Returns:
- boolean Returns a boolean
-
removePortConnection
Information provided by the PKI file:
\brief Removes the port connection. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \return bool, true if successful, otherwise false.- Specified by:
removePortConnectionin interfaceCloud- Parameters:
portName- Takes in a parameter of portName- Returns:
- boolean Returns a boolean
-
removeAllPortConnection
Information provided by the PKI file:
\brief Removes all port connections. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \return bool, true if successful, otherwise false.- Specified by:
removeAllPortConnectionin interfaceCloud- Parameters:
portName- Takes in a parameter of portName- Returns:
- boolean Returns a boolean
-
setDslConnection
Information provided by the PKI file:
\brief Sets the DSL or cable connection. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param bDsl, true for DSL connection, false for cable connection. \return bool, true if successful, otherwise false.- Specified by:
setDslConnectionin interfaceCloud- Parameters:
portName- Takes in a parameter of portNamebDSL- Takes in a parameter of bDSL- Returns:
- boolean Returns a boolean
-
getSubLinkConnectionCount
public int getSubLinkConnectionCount()Information provided by the PKI file:
\brief Return the number of sublink connection. \return int, number of sublink connection- Specified by:
getSubLinkConnectionCountin interfaceCloud- Returns:
- int Returns a int
-
getSubLinkConnectionAt
Information provided by the PKI file:
\brief Return the Sublink Connection at an index \param index, the index location in the queue of the desired sublink connection \return pair<CloudSubLink, CloudSubLink>, from and to sublink pair- Specified by:
getSubLinkConnectionAtin interfaceCloud- Parameters:
index- Takes in a parameter of index- Returns:
- Pair<CloudSubLink, CloudSubLink> Returns a Pair<CloudSubLink, CloudSubLink>
-
getPortConnectionCount
public int getPortConnectionCount()Information provided by the PKI file:
\brief Return the number of port connections. \return int, number of port connection- Specified by:
getPortConnectionCountin interfaceCloud- Returns:
- int Returns a int
-
getPortStrConnections
Information provided by the PKI file:
\brief Return a list of connection with port names \return vector<string>, list of connection with port names- Specified by:
getPortStrConnectionsin interfaceCloud- Returns:
- List<String> Returns a List<String>
-
isDslConnection
Information provided by the PKI file:
\brief Check if the port is used in a Dsl Connection \return vector<string>, list of connection with port names- Specified by:
isDslConnectionin interfaceCloud- Parameters:
portname- Takes in a parameter of portname- Returns:
- boolean Returns a boolean
-
removeSubLinkConnectionAt
public void removeSubLinkConnectionAt(int index) Information provided by the PKI file:
\brief Remove sublink connection at an index \param index, the index at which the sublink connection should be removed \return none- Specified by:
removeSubLinkConnectionAtin interfaceCloud- Parameters:
index- Takes in a parameter of index
-
getSubLinkConnectionInfo
Information provided by the PKI file:
\brief Get Sublink Connection Info (from port, from sublink, to port, to sublink) \return vector<string>, list of sublink connection info in string format- Specified by:
getSubLinkConnectionInfoin interfaceCloud- Returns:
- List<String> Returns a List<String>
-
getHardwareQueueCount
public int getHardwareQueueCount()Information provided by the PKI file:
\brief Get the number of hardware queue \return int, number of hardware queue- Specified by:
getHardwareQueueCountin interfaceCloud- Returns:
- int Returns a int
-
getHardwareQueueAt
Information provided by the PKI file:
\brief Remove hardware queue at an index \param index, the index at which the hardware queue is at \return HardwareQueue, HardwareQueue object- Specified by:
getHardwareQueueAtin interfaceCloud- Parameters:
index- Takes in a parameter of index- Returns:
- HardwareQueue Returns a HardwareQueue
-